home *** CD-ROM | disk | FTP | other *** search
- on MouseClick
- global gNumSpr, g1erSprLoc, gBoutons, gEtudAct, gEtatEtud, gSurvolPrec, gPartie, gMessDef1, gScopeCo0, gScopeCo1, gTraduit
- if word 1 of the name of cast the castNum of sprite gNumSpr <> "BTPVID" then
- curseur(6)
- if word 1 of the name of cast the castNum of sprite gNumSpr = "BTPOEI" then
- set the visible of sprite (g1erSprLoc + 12) to 0
- set the visible of sprite (g1erSprLoc + 13) to 0
- set the visible of sprite (g1erSprLoc + 14) to 1
- set gEtatEtud to gPartie
- gBoutons(habille, gNumSpr, "BTPOEF 1")
- set gMessDef1 to getAt(gTraduit, 38)
- gScopeCo0(preLoad, 2000, 0)
- gScopeCo1(preLoad, 2000, 0)
- else
- set the visible of sprite (g1erSprLoc + 14) to 0
- set the visible of sprite (g1erSprLoc + 12) to 1
- set the visible of sprite (g1erSprLoc + 13) to 1
- set gEtatEtud to " "
- gBoutons(habille, gNumSpr, "BTPOEI 1")
- set gMessDef1 to getAt(gTraduit, 54)
- end if
- updateStage()
- curseur(-1)
- else
- gBoutons(relache, gNumSpr)
- curseur(7)
- end if
- end
-
- on mouseDown
- global gNumSpr, g1erSprLoc, gBoutons
- curseur(1)
- if the visible of sprite (g1erSprLoc + 11) = 1 then
- set gNumSpr to g1erSprLoc + 11
- gBoutons(appuie, gNumSpr)
- end if
- end
-
- on mouseUp
- global gNumSpr, g1erSprLoc, gBoutons, gEtudAct, gEtatEtud, gSurvolPrec
- if (the visible of sprite (g1erSprLoc + 11) = 1) and (gNumSpr = (g1erSprLoc + 11)) then
- MouseClick()
- else
- pass()
- end if
- end
-